/*
 * @Author: 陆成杰
 * @Date: 2022-06-29 13:31:03
 * @LastEditTime: 2022-07-03 08:46:57
 * @LastEditors: 陆成杰
 * @FilePath: /boe/src/axios/show.ts
 * Copyright (c) ${now_year} by zucc-陆成杰, All Rights Reserved. 
 */
import { request } from "./request";

export function getShow(offset:any, count:any) {
    return request({
        url: '/show/all',
        method: 'get',
        params: {
          offset: offset,
          count: count
        }
    })
}

export function deleteShow(url:any) {
  return request({
      url: url,
      method: 'delete',
  })
}

export function changeShow(id:string, name:string, duration:string, author:string, images:string, resolution:string) {
  return request({
      url: '/show',
      method: 'put',
      data: {
        id,
        name,
        duration,
        author,
        images,
        resolution
      }
  })
}

export function addShow(name:string, duration:any, author:string, images:string, resolution:string) {
  return request({
      url: '/show',
      method: 'post',
      data: {
        name,
        duration,
        author,
        images,
        resolution
      }
  })
}